package com.xnew.org.mapper;

import java.util.List;
import java.util.Map;

import com.xnew.bean.common.AcctOrganizationInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface OrgMapper {
	List<Map<String,Object>> querySysOrgList(@Param("params") Map<String, Object> map);

    List<AcctOrganizationInfo> queryTopOrgList() throws Exception;

    List<AcctOrganizationInfo> queryChildOrgListById(@Param("parentId") String parentId) throws Exception;

    void updateOrgAllName(AcctOrganizationInfo acctOrganizationInfo);

    List<AcctOrganizationInfo> queryAllOrgList() throws Exception;

    List<Map<String, Object>> queryFirstNodeByOrgId(@Param("params") Map<String, Object> map);

    AcctOrganizationInfo queryOrgByOrgId(@Param("orgId")String orgId)throws Exception;
}
